package com.lsege.service.backstage;

import com.lsege.entity.backstage.MutualAid;
import com.lsege.entity.backstage.MutualAidApply;
import com.lsege.mapper.backstage.MutualAidMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2017/7/29 0029.
 */
@Service
public class MutualAidServiceImpl implements MutualAidService{
    @Autowired
    MutualAidMapper mutualAidMapper;


    @Override
    public List<MutualAid> getMutualAidList() {
        return mutualAidMapper.getMutualAidList();
    }

    @Override
    public Long getMutuaiAidCount() {
        return mutualAidMapper.getMutuaiAidCount();
    }

    @Override
    public List<MutualAidApply> getMutualAidApply(Integer applyState) {
        return mutualAidMapper.getMutualAidApply(applyState);
    }

    @Override
    public Long getMutualAidApplyCount(Integer applyState) {
        return mutualAidMapper.getMutualAidApplyCount(applyState);
    }

    @Override
    public List<MutualAidApply> getOverMutualAidApply() {
        return mutualAidMapper.getOverMutualAidApply();
    }

    @Override
    public Long getOverMutualAidApplyCount() {
        return mutualAidMapper.getOverMutualAidApplyCount();
    }

    @Override
    public void rejectApply(MutualAidApply mutualAidApply) {
        mutualAidMapper.rejectApply(mutualAidApply);
    }

    @Override
    public void rejectApplyReason(MutualAidApply mutualAidApply) {
        mutualAidMapper.rejectApplyReason(mutualAidApply);
    }

    @Override
    public void allowApply(MutualAidApply mutualAidApply) {
        mutualAidMapper.allowApply(mutualAidApply);
    }

    @Override
    public Long getApplyMoney(MutualAidApply mutualAidApply) {
        return mutualAidMapper.getApplyMoney(mutualAidApply);
    }

    @Override
    public void changeApplyMoney(Long reduce) {
        mutualAidMapper.changeApplyMoney(reduce);
    }

    @Override
    public void changeMutualAidState() {
        mutualAidMapper.changeMutualAidState();
    }

    @Override
    public Long getMutualAidCount() {
        return mutualAidMapper.getMutualAidCount();
    }

    @Override
    public void changeApplyState(String mutualCode) {
        mutualAidMapper.changeApplyState(mutualCode);
    }

    @Override
    public void judgeCost(Long reduce) {
        mutualAidMapper.judgeCost(reduce);
    }

    @Override
    public void changeCannotToCan() {
        mutualAidMapper.changeCannotToCan();
    }


}
